import 'package:get/get.dart';
import 'package:ff_flutter/screens/index.dart';
import 'package:ff_flutter/screens/register.dart';
import 'package:ff_flutter/screens/smslogin.dart' as sms;
import 'package:ff_flutter/routes/app_routes.dart';
import 'package:ff_flutter/controllers/index_controller.dart';
import 'package:ff_flutter/controllers/register_controller.dart';
import 'package:ff_flutter/controllers/sms_login_controller.dart';
import 'package:ff_flutter/screens/vip/index.dart';
import 'package:ff_flutter/screens/personal_data/index.dart';
import 'package:ff_flutter/screens/help_center/index.dart';
import 'package:ff_flutter/screens/security_center/index.dart';
import 'package:ff_flutter/screens/anchor_apply/index.dart';
import 'package:ff_flutter/screens/invite_friends/index.dart';

class AppPages {
  static final pages = [
    GetPage(
      name: AppRoutes.INDEX,
      page: () => IndexScreen(),
      binding: BindingsBuilder(() {
        Get.lazyPut(() => IndexController());
      }),
    ),
    GetPage(
      name: AppRoutes.REGISTER,
      page: () => const RegisterScreen(),
      binding: BindingsBuilder(() {
        Get.lazyPut(() => RegisterController());
      }),
    ),
    GetPage(
      name: AppRoutes.SMS_LOGIN,
      page: () => const sms.SmsLoginScreen(),
      binding: BindingsBuilder(() {
        Get.lazyPut(() => SmsLoginController());
      }),
    ),
    GetPage(
      name: AppRoutes.VIP,
      page: () => VipScreen(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: AppRoutes.PERSONAL_DATA,
      page: () => PersonalDataScreen(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: AppRoutes.HELP_CENTER,
      page: () => HelpCenterScreen(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: AppRoutes.SECURITY_CENTER,
      page: () => SecurityCenterScreen(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: AppRoutes.ANCHOR_APPLY,
      page: () => AnchorApplyScreen(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: AppRoutes.INVITE_FRIENDS,
      page: () => InviteFriendsScreen(),
      transition: Transition.rightToLeft,
    ),
  ];
}
